package cn.kgc.crowdfundingadmin.pojo;

import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.userdetails.User;

import java.util.Collection;

public class SecurityAdmin extends User {
    private static final long serialVersionUID = 1L;

    private Admin originalAdmin;
    public SecurityAdmin(Admin admin, Collection<? extends GrantedAuthority> authorities) {
      super(admin.getLoginacct(),admin.getUserpswd(),authorities);
      originalAdmin=admin;
    }
    public Admin getOriginalAdmin() {
        return originalAdmin;
    }
}
